import request from '@/utils/request';

// 列表数据
export const dataGet = (data: Object) => {
    return request({
        url: "/pc/goods_type/list",
        data: data,
        method: "post",
    });
};
// 新增编辑
export const dataAdd = (data: Object) => {
    return request({
        url: "/pc/goods_type/save",
        data: data,
        method: "post",
    });
};
// 删除
export const dataDel = (data: Object) => {
    return request({
        url: "/pc/goods_type/del",
        data: data,
        method: "post",
    });
};

// 文件上传
export const imageFile = (data: Object) => {
    return request({
        url: "/pc/common/upload",
        data: data,
        method: "post",
    });
};